﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace The_LarX
{
    public enum ExpectedNode
    {
        Condition, Object
    }
    public class RectangleOwner
    {
        public VSRBase Owner;
        public Rectangle Rectangle;
        public bool Active;
        public List<VisualScript_Node> AddList;
        public ExpectedNode ExpectedNode;

        public RectangleOwner(VSRBase owner,
            Rectangle rect, List<VisualScript_Node> list, ExpectedNode no)
        {
            this.Owner = owner;
            this.Rectangle = rect;
            this.AddList = list;
            this.ExpectedNode = no;
        }

        public void Draw(Camera2D Camera)
        {
            Color color;
            if (Active)
                color = Color.Yellow;
            else
                color = Color.Black;
            Engine.RenderManager.DrawRectangle(color, Rectangle, Camera);
        }
    }
}
